<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            display: block;
            width: 230px;
            height: 40px;
            line-height: 40px;
            /* 让单行文字垂直居中：让行高等于盒子的高 */
            background-color: #333;
            font-size: 14px;
            color: #fff;
            text-decoration: none;
            text-indent: 2em;
        }

        a:hover {
            background-color: cornflowerblue;
        }

        .demo {
            background: url(https://csdnimg.cn/cdn/content-toolbar/csdn-logo_.png?v=20190924.1);
            background-repeat: no-repeat;
            background-position: center right;
            background-color: rosybrown;
            width: 500px;
            height: 500px;
            display: inline-block;
            line-height: 500px;
            text-align: center;
        }

        .nav {
            height: 200px;
            width: 100%;

        }
    </style>
</head>


<body>
    <a href="#">AAAAAA</a>
    <a href="#">AAAAAA</a>
    <a href="#">AAAAAA</a>
    <a href="#">AAAAAA</a>
    <a href="#">AAAAAA</a>
    <a href="#">AAAAAA</a>
    <a href="#">AAAAAA</a>

    <div class="demo">
        AAAAAA
    </div>
    <div class="nav">
        <a href="#">1234</a>
        <a href="#">2345</a>
        <a href="#">3456</a>
        <a href="#">4567</a>
        <a href="#">6789</a>
    </div>
</body>

</html>